package com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 收费类别表
 * </p>
 *
 * @author XYHT
 * @since 2024-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sms_wns_charge_category")
@ApiModel(value = "SmsWnsChargeCategory对象", description = "收费类别表")
public class SmsWnsChargeCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收费类别id")
    private String id;

    @ApiModelProperty(value = "收费类别名")
    private String name;

    @ApiModelProperty(value = "收费类别详细描述，说明操作内容和要求")
    private String description;

    @ApiModelProperty(value = "类型(0.单选必缴 1.单选不必缴 2.多选必缴 3.多选不必缴)")
    private Integer type;

    @ApiModelProperty(value = "顺序，用于排列收费类别的先后次序")
    private Integer sort;

    @ApiModelProperty(value = "是否可修改")
    private Boolean isModified;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;

    // 构造器
    public SmsWnsChargeCategory() {
    }

    public SmsWnsChargeCategory(String name, Integer type, Integer sort) {
        this.name = name;
        this.description = name;
        this.type = type;
        this.sort = sort;
        this.isModified = false; // 不可修改
    }
}
